package com.glodon.paas.framework.registry.core.type;

import com.glodon.paas.framework.registry.core.status.ClientStatus;

import java.io.Serializable;

/**
 * Client basic infomation that stored as znode data.
 *
 * @author Don Li
 */
public class ClientBasic implements Serializable {
    private String clientId;
    private ClientStatus clientStatus;
    private String ip;
    private int port;
    private String internalIp;
    private int internalPort;

    public ClientBasic() {
    }

    public ClientBasic(String clientId, ClientStatus clientStatus, String ip, int port) {
        this.clientId = clientId;
        this.clientStatus = clientStatus;
        this.ip = ip;
        this.port = port;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public ClientStatus getClientStatus() {
        return clientStatus;
    }

    public void setClientStatus(ClientStatus clientStatus) {
        this.clientStatus = clientStatus;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getInternalIp() {
        return internalIp;
    }

    public void setInternalIp(String internalIp) {
        this.internalIp = internalIp;
    }

    public int getInternalPort() {
        return internalPort;
    }

    public void setInternalPort(int internalPort) {
        this.internalPort = internalPort;
    }
}
